<?php

namespace app\admin\model;

use think\Model;

class ShopInfo extends Model
{
    //为指定id的商户生成初始数据
      public  static function  initShopInfo($id,$shopname,$contact_mobile){
        $res= self::create([
            'shop_id'  =>  $id,
            'shopname' =>  $shopname,
            'contact_mobile'  => $contact_mobile
        ]);
        return $res;
    }

    public  static function  edit($id,$shopname,$contact_mobile){
        $res= self::create([
            'shop_id'  =>  $id,
            'shopname' =>  $shopname,
            'contact_mobile'  => $contact_mobile
        ]);
        return $res;
    }



}
